/*
 * $Id: update-2013-04-19.js 43 2013-04-19 15:16:56Z gabakyan $
 * $Author: gabakyan $
 * $Revision: 43 $
 * $Date: 2013-04-19 15:16:56 +0000 (Fri, 19 Apr 2013) $
 *
 * Copyright (c) 2013 Supply Chain Intelligence (SCI), Inc.
 * http://www.scintelligence.com/, Email: info@scintelligence.com
 * All rights reserved.
 *
 * This file is part of Logistics Map.
 *
 * Logistics Map is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, version 3 of the License.
 *
 * Logistics Map is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Logistics Map.  If not, see <http://www.gnu.org/licenses/>.
 */

/**
 * Adding a new property (deleted = false) to each document in locations collection.
 */

db.location.find().forEach(function(location) {
    db.location.update({_id: location._id}, {$set: { deleted: false }});
});
